aboutdialog: Update precondition checks for new licenses added in 3.24.20
authorSimon McVittie <smcv@debian.org>
Mon, 11 May 2020 17:12:08 +0000 (17:12 +0000)
committerSimon McVittie <smcv@debian.org>
Mon, 11 May 2020 17:37:22 +0000 (18:37 +0100)
commit6451250b2e29ab4881fccc4e271a1cdbb8e923bb
tree45078617cae309bd682f34a7317de83564489b5f
parent7ae1d9d7965724a80338e3239172c55a3714d203
aboutdialog: Update precondition checks for new licenses added in 3.24.20

To avoid making this mistake again, add a static assertion that the
enum is in sync with gtk_license_info, and use the length of
gtk_license_info for the precondition check.

Signed-off-by: Simon McVittie <smcv@debian.org>
Resolves: #2734
gtk/gtkaboutdialog.c